/*给body元素添加背景图片*/
			
body {
				
}
/*设置mole图片出现的位置*/

img {
    /*开启位置移动:绝对移动*/
    position: relative;
    left: -2px;
    top: 10px;
}
/*给主游戏界面设置样式*/

.stage {
    border-radius: 10px;
    background-image: url('../img/grass.png');
    background-repeat: no-repeat;
    background-size: cover;
    user-select: none;
    /*水平居中*/
    margin: auto;
    margin-top: 50px;
    height: 600px;
    width: 900px;
    /*容器内的内容的对齐方式:水平居中*/
    text-align: center;
    /*鼠标在该区域内的样式*/
    cursor: url('../img/h3.ico') 50 50, pointer;
    padding: 20px;
}
/*当鼠标在主界面区域点击时*/

.stage:active {
    /*鼠标样式发生改变*/
    cursor: url('../img/h4.ico') 50 50, pointer
}
/*给行容器指定样式*/

.rows{
    padding-top: 10px;
    width: 80%;
    margin: auto;
    display: flex;
    justify-content: space-between;
}
.row {
    height: 120px;
    width: 800px;
    margin: auto;
}
/*给每个鼠洞容器添加样式*/

.hole {
    /*将显示洞口的div转换成行块级元素,这样转换后的div即可以指定宽高又可以水平排列*/
    display: inline-block;
    height: 150px;
    width: 180px;
    /*每行的三个div均匀散开*/
   
    /*设置背景填充时不重复*/
    background-repeat: no-repeat;
    /*设置背景*/
    background-image: url('../img/hole.png');
    background-size: contain;
    /*设置背景的位置*/
    background-position: bottom;
    /*设置洞口容器可移动*/
    position: relative;
    /*设置溢出的内容隐藏*/
    overflow: hidden;
}
/*设置加分字体的样式*/

.msg {
    /*文字颜色*/
    color: white;
    /*字体大小*/
    font-size: 48px;
    /*字体*/
    font-family: "comic sans ms";
}

.hud {
    width: 85%;
    margin: auto;
    padding: 0px 10px;
    display: flex;
    justify-content: space-between;
    -webkit-text-stroke: 1px rgb(130, 73, 21);
}

.hud div {
    /* display: inline-block; */
    color: white;
    font-family: "comic sans ms";
    font-size: 2.5em;
    font-weight: bolder;
    text-align: left;
   
}

.over {
    color: rgb(130, 73, 21);
    font-family: "comic sans ms";
    font-size: 7em;
    -webkit-text-stroke: 3px white;
    font-weight: bolder;
    width: 800px;
    height: 200px;
    margin: auto;
    margin-top: 150px;
    text-align: center;
}

.life {
    height: 60px;
    width: 320px;
    background-image: url('../img/life.png');
    background-repeat: no-repeat;
    margin-left: 20px;
}

.score {
    width: 400px;

}

.highest {
    width: 420px;
   margin-left: 30px;
}

.reset {
    width: 450px;
    height: 80px;
    margin: auto;
    margin-top: 50px;
    background-color: lightgrey;
    border-radius: 10px;
    border: 5px solid darkgrey;
    text-align: center;
    line-height: 80px;
    font-family: "comic sans ms";
    font-size:2.5em;
    font-weight: bold;
    cursor: url('../img/hand.png'), pointer;
}

.reset:hover {
    position: relative;
    top: 2px;
    left: -2px;
}
.curtain{
    color:white;
    font-size: 16em;
    font-weight: bold;
    font-family: "comic sans ms";
    position:absolute;
    text-align: center;
    width: 100%;
    height:200px;
    top:300px;
    animation: 1s scaleIn infinite;
    
}

@keyframes scaleIn{
    0%{font-size: 0em;color:transparent}
    100%{font-size:16em;}
}